class Run_cardFormModel extends Backbone.Model
    url: '/mytable/getModel?s=table.creators.Run_cardTable'
    initialize: (options) =>
        @fetch()
   
#--------------------------------------------------controler
class Run_cardsApp
    search: =>
        myapp.mainRegion.close() 
        mymodel = new Run_cardFormModel
        @layout = new ModelMainLayout(model: mymodel)
        myapp.mainRegion.show(@layout)

            

#--------------------------------------------------router
class Run_cardsAppRouter extends Backbone.Marionette.AppRouter
    appRoutes: 
        "run_cards": "search"

                
myapp.addInitializer -> 
    myapp.Run_cards_app = new Run_cardsApp()
    myapp.Run_cards_app.router = new Run_cardsAppRouter controller: myapp.Run_cards_app

myapp.vent.trigger("routing:started")
